<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Forpastime <Forpastime@qq.com>
// +----------------------------------------------------------------------
namespace api\tenant_user\validate;

use think\Validate;

class UserValidate extends Validate
{
    protected $rule = [
        'shop_id'    =>'require',
        'name'        =>  'require',
	    'age'      =>  'require',
        'tel'        =>  'require',
	    'app_user_id'        =>  'require',
        
    ];
    protected $message = [
        'shop_id.require'    =>  '商户ID不能为空',
        'name.require'    =>  '姓名不能为空',
	    'age.require'  =>  '年龄不能为空',
        'tel.require'    =>  '电话不能为空',
	    'app_user_id.require'    =>  '用户ID不能为空'
        
    ];

    protected $scene = [
        'addUser'  => [ 'shop_id' , 'name' , 'tel' ,'age']
    ];
}